package com.xoa.dao.hr;

import com.xoa.model.hr.HrStaffContract;
import com.xoa.model.hr.HrStaffLaborSkills;
import com.xoa.model.hr.HrStaffLaborSkillsExample;
import com.xoa.model.hr.HrStaffLaborSkillsWithBLOBs;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 *    创建作者:  李阳
 *    创建日期： 2018-07-18 11:22
 *    介绍：劳动信息
 */
public interface HrStaffLaborSkillsMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int countByExample(HrStaffLaborSkillsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int deleteByExample(HrStaffLaborSkillsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Integer skillsId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int insert(HrStaffLaborSkillsWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int insertSelective(HrStaffLaborSkillsWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    List<HrStaffLaborSkillsWithBLOBs> selectByExampleWithBLOBs(HrStaffLaborSkillsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    List<HrStaffLaborSkills> selectByExample(HrStaffLaborSkillsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    HrStaffLaborSkillsWithBLOBs selectByPrimaryKey(Integer skillsId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") HrStaffLaborSkillsWithBLOBs record, @Param("example") HrStaffLaborSkillsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int updateByExampleWithBLOBs(@Param("record") HrStaffLaborSkillsWithBLOBs record, @Param("example") HrStaffLaborSkillsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") HrStaffLaborSkills record, @Param("example") HrStaffLaborSkillsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(HrStaffLaborSkillsWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */
    int updateByPrimaryKeyWithBLOBs(HrStaffLaborSkillsWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hr_staff_labor_skills
     *
     * @mbggenerated
     */

    int updateByPrimaryKey(HrStaffLaborSkills record);


    public List<HrStaffLaborSkills> getAllHrStaffLaborSkills(Map<String,Object> map);

    public HrStaffLaborSkills getStaffBySkillsId(Integer skillsId);

    public List<HrStaffLaborSkills> getStaffInfo(Map<String, Object> map);

    public int updateHrStaffLaborSkills(HrStaffLaborSkills hrStaffLaborSkills);

    public int delHrStaffLaborSkills(Integer[] skillsId);

    public int insertHrStaffLaborSkills(HrStaffLaborSkills hrStaffLaborSkills);

    public int skillsCount();

    public int skillsmanyCount(HrStaffLaborSkills hrStaffLaborSkills);

    /**
     * 查询当前登录用户信息
     * @param userId
     * @return
     */
    List<HrStaffLaborSkillsWithBLOBs> getHrStaffContractList(String userId);
    /**
     * 根据 userId 查询劳动技能
     * @param
     * @return
     */
    public List<HrStaffLaborSkillsWithBLOBs> getSkill(HashMap<String,Object> map);

    /**
     * 创建者：戚中校
     * 方法作用：人事分析模块查数量
     * @param map
     * @return
     */
    List<HrStaffLaborSkills> selectNumByCon (Map<String,Object> map);

    int getSkillCount(String staffName);
}